package com.scjp_Java6.ExceptionHandling;

public class MyException3 extends Exception {
	private static final long serialVersionUID = 1L;
	private String message;

	public MyException3(String s) {
		super(s);
		message = s;
	}

	@Override
	public String getMessage() {
		System.out.println(super.getMessage());
		return super.getMessage();
	}

	void showMessage() {
		System.out.println(message);
	}
}
